function BuyAllInBasket(){
	var gourl="/buy_all";
	$.ajax({
        url: gourl,
        success: function(data) {
			$('#total_price').val(data);
		  },
		  error: function(data) {
		    $('#total_price').val(data);
		   }
    	});
}
function DeleteBasketItem(id){
	var gourl="/del_basketitem?id="+id;
	$.ajax({
        url: gourl
    	});
	setTimeout("window.location.reload();", 1000);	
}
function ChangeItem(id)
{	
	var url="/change_basket?id="+id;	
	$.ajax({
		  url: url,
		  success: function(data) {
			$("#cnt_"+id).val(data);
		  },
		  error: function(data) {
		    $("#cnt_"+id).val(data);
		   }
		});
}